
#if defined(WIN32) || defined(WIN64)
#pragma unmanaged
#endif

#include <Liberty3D/Engine/Game.h>

#include <Liberty3D/Engine/Context.h>
#include <Liberty3D/Engine/GameObject.h>
#include <Liberty3D/Engine/Window.h>
#include <Liberty3D/Engine/XML/Parser.h>
#include <Liberty3D/Engine/IAssetFile.h>
#include <Liberty3D/Engine/XML/Serializer.h>
#include <Liberty3D/Engine/ISerializableFactory.h>

using namespace Liberty::Engine;
using namespace Liberty::Engine::Xml;

void Game::init() {
}

std::shared_ptr<Window> _mainWindow;

void Game::starting(const std::shared_ptr<Context>& context) {
    _mainWindow = std::shared_ptr<Window>(new Window());
}

void Game::started(const std::shared_ptr<Context>& context) {
    _mainWindow->setTitle("Miaw");
    _mainWindow->show();
}

void Game::stoping(const std::shared_ptr<Context>& context) {
    _mainWindow = std::shared_ptr<Window>();
}

void Game::stoped(const std::shared_ptr<Context>& context) {
}
